<%@ Page Language="C#" MasterPageFile="~/Master/PlacementManager.master" Theme="YUI"
    StylesheetTheme="YUI" AutoEventWireup="true" CodeFile="SystemErrors.aspx.cs"
    Inherits="Home_SystemErrors" Title="PlacementManager: System Errors" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="yui-main">
        <h1>
            System Errors</h1>
        These will eventually only be viewable by system administrators.
        <asp:GridView ID="gv_Errors" SkinID="Results" EmptyDataText="There are no errors in the log."
            AllowSorting="True" AllowPaging="True" runat="server" DataSourceID="WebEventsDataSource">
        </asp:GridView>
        <asp:Button ID="btnClearLog" CssClass="inputbutton" runat="server" OnClick="btnClearLog_Click"
            Text="Clear Log" />
        <asp:SqlDataSource ID="WebEventsDataSource" runat="server" SelectCommand="SELECT TOP 10 [EventTime], [EventType], [EventSequence], [EventCode],[Message], [RequestUrl],[Details] FROM [dbo].[aspnet_WebEvent_Events] ORDER BY [EventTime] DESC"
            DeleteCommand="DELETE FROM [dbo].[aspnet_WebEvent_Events]" ConnectionString="<%$ ConnectionStrings:PlacementManager %>"
            ProviderName="<%$ ConnectionStrings:PlacementManager.ProviderName %>" />
    </div>
</asp:Content>
